import request from '@/router/axios';
//查找表格
export const getList = (page, size, params) => {
    return request({
        url: '/base/proportion/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}
export const getSellBuyer = (parentId,level) => {
    return request({
        url: '/base/organization/getOrganizationListByLevel',
        method: 'post',
        params: {
            parentId:parentId,
            level:level
        }
    })
}
export const addItem = (data) => {
    return request({
        url: '/base/proportion/addItem',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            ...data
        }
    })
}

export const editItem = (data) => {
    return request({
        url: '/base/proportion/editItem',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            ...data
        }
    })
}

export const deleteItem = (data) => {
    return request({
        url: '/base/proportion/delete',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            ...data
        }
    })
}